package com.hdwe.tools.pm.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.hdwe.tools.pm.domain.PmTaskStep;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 任务步骤视图对象 pm_task_step
 *
 * @author s
 * @date 2024-12-10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PmTaskStep.class)
public class PmTaskStepVo extends BaseEntityVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 任务id
     */
    @ExcelProperty(value = "任务id")
    private Long taskId;

    /**
     * 任务类型
     */
    @ExcelProperty(value = "任务类型")
    private String taskType;

    /**
     * 步骤名称
     */
    @ExcelProperty(value = "步骤名称")
    private String stepName;

    /**
     * 任务步骤
     */
    @ExcelProperty(value = "任务步骤")
    private String stepCode;

    /**
     * 步骤状态（ready未开始 doing进行中 finished完成 blocked阻塞）
     */
    @ExcelProperty(value = "步骤状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "r=eady未开始,d=oing进行中,f=inished完成,b=locked阻塞")
    private String stepStatus;

    /**
     * 步骤排序
     */
    @ExcelProperty(value = "步骤排序")
    private Long stepOrder;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 状态（enable正常 disable停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "e=nable正常,d=isable停用")
    private String status;

    /**
     * 创建者
     */
    @ExcelProperty(value = "创建者")
    private Long createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改者
     */
    @ExcelProperty(value = "修改者")
    private Long updateBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date updateTime;


}
